package com.rescue.service;

import com.rescue.forum.dto.CommentPageQueryDTO;
import com.rescue.forum.dto.SaveCommentDTO;
import com.rescue.forum.dto.UserCommentQueryDTO;
import com.rescue.forum.entity.ForumComment;
import com.rescue.result.PageResult;

import java.time.LocalDateTime;
import java.util.List;

public interface CommentService {
    PageResult page(CommentPageQueryDTO commentPageQueryDTO);

    void deleteById(Integer commentId);

    void audit(Integer commentId);

    PageResult userGetCommentList(UserCommentQueryDTO userCommentQueryDTO);

    void save(SaveCommentDTO saveCommentDTO);

    void top(Integer commentId, Integer topType);

    void doLike(Integer commentId, Integer status);

    List<ForumComment> getCommentByUserId();

    void userDeleteById(Integer commentId);

    Integer getCommentCount(LocalDateTime localDateTime);
}
